package com.yt.lxh.common.exception;

import com.yt.lxh.common.result.ResultCodeEnum;
import lombok.Data;

@Data
public class LuXueHeException extends RuntimeException{
    private Integer code;
    private String message;
    private ResultCodeEnum resultCodeEnum;
    public LuXueHeException(ResultCodeEnum resultCodeEnum) {
        this.resultCodeEnum=resultCodeEnum;
        this.code = resultCodeEnum.getCode();
        this.message = resultCodeEnum.getMessage();
    }
}
